/*
	Trivial application that displays a string - 4/96 PNL
*/

public class TrivialApplication {

	public static void main(String args[]) {
	    System.out.println("Sum of the integers between 13 and 1000");
	    System.out.println("SimpleSummer:");
	    long acc;
	    SimpleSummer ss = new SimpleSummer();
		long time = System.currentTimeMillis();
		for(int i=0;i<5000;i++)
			acc = ss.sum(13,1000);
		long time2 = System.currentTimeMillis();
		System.out.println("Took "+(time2-time)+" ms.");
		System.out.println("FormulaicSummer:");
		FormulaicSummer fs = new FormulaicSummer();
		time = System.currentTimeMillis();
		for(int i=0;i<5000;i++)
			acc = fs.sum(13,1000);
		time2 = System.currentTimeMillis();
		System.out.println("Took "+(time2-time)+" ms.");
	}
}
